package com.hu.bgp.client.view;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Widget;
import com.hu.bgp.client.presenter.GameSessions.Display;
import com.hu.bgp.client.widgets.uicomponents.GameSessionTable;

public class GameSessions extends Composite implements Display
{
	private GameSessionTable typeTable;
	private Button joinButton;
	private Button createButton;
	private FlowPanel content = new FlowPanel();
	
	public GameSessions()
	{
		
		typeTable = new GameSessionTable();
		joinButton = new Button("Select");
		createButton = new Button("Create");
		content.add(typeTable);
		content.add(joinButton);
		content.add(createButton);
		initWidget(content);
	}
	
	public Widget asWidget() {
		return this;
	}

	public GameSessionTable getGameTypetable() {

		return typeTable;
	}


	public HasClickHandlers getJoinButton() {

		return joinButton;
	}

	public HasClickHandlers getCreateButton()
	{
		return createButton;
	}

}
